import request from '@/utils/request'

/* 获取一体杆列表的接口 */
export const fetchPoleListAPI = (pageParams) => {
  return request({
    url: '/pole/info/list',
    method: 'GET',
    params: pageParams
  })
}

/* 删除一体杆的接口 */
export const deletePoleAPI = (id) => {
  return request({
    url: `/pole/info/${id}`,
    method: 'DELETE'
  })
}

/* 添加一体杆的接口 */
export const addPoleAPI = (data) => {
  return request({
    url: '/pole/info',
    method: 'POST',
    data
  })
}

/* 编辑一体杆的接口 */
export const updatePoleAPI = (data) => {
  return request({
    url: '/pole/info',
    method: 'PUT',
    data
  })
}


/* 获取一体杠管理区域的接口 */
export const fetchDropListAPI = () => {
  return request({
    url: '/parking/area/dropList',
    method: 'GET'
  })
}
